package eclipse.client;
import eclipse.lib.*;
/**
 * The Application object to the Eclipse Engine. 
 * This class is loaded once the application starts.
 */
public class Application 
{
	/** A pointer to the Loader Class used.*/
	public Loader loader;
	/** A pointer to the Window the Application uses */
	public StandardForm window;	
	private static Application def = new Application();
	/** Returns the default Application object */
	public static Application getDefault()
	{
		return def;
	}
	/** Entry point to the Application Object */
	public static void main(String args[])
	{				
		getDefault().window = new StandardForm("Loading Eclipse", 300, 100, 200, 200);	
		getDefault().loader 		= new Loader();						
		getDefault().window.setVisible(true);
		getDefault().window.add(getDefault().loader.getSurface());		
		getDefault().loader.INIInit();
		getDefault().loader.TCPInit(0);
		getDefault().loader.ThreadInit();
		getDefault().loader.GUIInit();
		getDefault().window.setVisible(false);
		if(!Database.APPLET)
			Database.Mirage.setVisible(true);			
		
	}	
}
